import { request } from '@/utils/request';

/**
 * @description
 */
export function getRoadDetail(params?: API.CaptchaParams) {
  return request<API.CaptchaResult>({
    url: '/trafficAnalyze/roadDetail',
    method: 'get',
    params,
  });
}
// 重点片区-两个时间段道路差值对比
export function QueryRoadCongestDetail(data?: API.CaptchaParams) {
  return request<API.CaptchaResult>({
    url: '/trafficAnalyze/queryRoadCongestDetail',
    method: 'post',
    data,
  });
}
//
export function QueryCompareRoadCongest(data?: API.CaptchaParams) {
  return request<API.CaptchaResult>({
    url: '/trafficAnalyze/compareRoadCongest',
    method: 'post',
    data,
  });
}

// 定期分析统计
export function QueryRoadsegRank(data?: API.CaptchaParams) {
  return request<API.CaptchaResult>({
    url: '/trafficAnalyze/queryRoadsegRank',
    method: 'post',
    data,
  });
}